<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>银杏网盘-登录注册</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css'>
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" href="css/login.css">
</head>
<body>
<div class="container">
  <div class="card-wrap">
    <!-- 欢迎界面 Card -->
    <div class="card border-0 shadow card--welcome is-show" id="welcome">
      <div class="card-body">
        <h2 class="card-title"><i class="fa fa-cloud" aria-hidden="true"></i> 银杏网盘</h2>
        <br>
        <div class="btn-wrap">
          <a id="enter-button" class="btn btn-lg btn-enter" href="/filelist">进入网盘</a>
          <a class="btn btn-lg btn-register js-btn" data-target="register">注册</a>
          <a class="btn btn-lg btn-login js-btn" data-target="login">登录</a>
        </div>
        <br>
      </div>
    </div>
    <!-- 注册界面 Card -->
    <div class="card border-0 shadow card--register" id="register">
      <div class="card-body">
        <h2 class="card-title">用户注册</h2>
        <form id="registerForm" method="post" action="register">
          <div class="form-group">
            <label>
              <input class="form-control userName" type="text" placeholder="用户名" required="required"
                     name="userName" autocomplete="off"
                     onkeyup="this.value=this.value.replace(/\s+/g,'')"/>
            </label>
          </div>
          <div class="form-group">
            <label>
              <input class="form-control password" type="password" placeholder="密码" required="required"
                     name="password" autocomplete="off"
                     onkeyup="this.value=this.value.replace(/\s+/g,'')">
            </label>
          </div>
          <div class="form-group">
            <label>
              <input class="form-control email" id="email" type="email" placeholder="邮箱"
                     required="required"
                     name="email" autocomplete="off" onkeyup="this.value=this.value.replace(/\s+/g,'')"/>
            </label>
          </div>
          <button class="btn btn-lg" type="submit">注册</button>
        </form>
      </div>
      <!-- 返回按钮 -->
      <button class="btn btn-back js-btn" data-target="welcome"><i class="fas fa-angle-left"></i></button>
    </div>
    <!-- 登录界面 Card -->
    <div class="card border-0 shadow card--login" id="login">
      <div class="card-body">
        <h2 class="card-title">用户登录</h2>
        <br><br>
        <form id="loginForm" method="post" action="login">
          <div class="form-group">
            <label>
              <input class="form-control" type="email" placeholder="邮箱" name="email"
                     required="required"
                     onkeyup="this.value=this.value.replace(/\s+/g,'')"/>
            </label>
          </div>
          <div class="form-group">
            <label>
              <input class="form-control" type="password" placeholder="密码" required="required"
                     name="password" autocomplete="off"
                     onkeyup="this.value=this.value.replace(/\s+/g,'')"/>
            </label>
          </div>
          <button id="btn-lg" class="btn btn-lg" type="submit">登录</button>
        </form>
        <br><br>
      </div>
      <!-- 返回按钮 -->
      <button class="btn btn-back js-btn" data-target="welcome"><i class="fas fa-angle-left"></i></button>
    </div>
  </div>
</div>
<script src="js/jquery-3.4.1.js"></script>
<script src="js/login.js"></script>
</body>
</html>